CCur

Basic and Crystal syntax.

Overloads
Arguments

CCur (number or currency)

number or currency is a Number or Currency value or expression.

CCur (string)

string is a String value or expression.

Returns

Currency value

Action

CCur returns a Currency value created by converting the given Number, Currency or String type argument to a Currency value. If the conversion cannot be done, an error occurs.

Examples

The following examples are applicable to both Basic and Crystal syntax:

CCur (200.20)

In Crystal syntax this is equivalent to writing $200.20. In Basic syntax, CCur (200.20) is the way to directly create a Currency value of 200.20.

CCur ("$200.20")

Returns the Currency value CCur (200.20) given the String value "$200.20".

CCur ("two hundred dollars")

Causes an error to occur. The CCur function cannot convert the String "two hundred dollars" to a Currency value.

Comments


Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com